package com.example.book.model;

import lombok.Data;

import java.util.List;
@Data
public class PageResult<T> {
    //存数据
    private List<T> records;
    //存有多少数据
    private Integer count;
    private PageRequest pageRequest;

    public List<T> getRecords() {
        return records;
    }

    public void setRecords(List<T> records) {
        this.records = records;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public PageRequest getPageRequest() {
        return pageRequest;
    }

    public void setPageRequest(PageRequest pageRequest) {
        this.pageRequest = pageRequest;
    }
}
